var obj={
    name:"zhangsan",
    age:12
};
var name='age'
console.log(obj['name'],'我是name');
console.log(obj[name],'我是age');
